<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%>
<html>
<head>
  <script type="text/javascript">
  function doSearch() {
	  grid.load({
            ins_cd: $('#ins_cd').val(),
            ins_cn_nm: $('#ins_cn_nm').val()
		});
  }
  /*新增*/
  function addInsInfCD(url){
	  commonDetail(url, "save", "insInfTableId");
  }
 /* 修改*/
  function modifyInsInfCd(url){
   commonDetail(url, "update", "insInfTableId");
  }
  var grid;
  $(document).ready(function() {
	  grid = $("#insInfTableId").jpgrid({
			url: "InsinfOrganizationListJson.do",
			columns: [
				{title: "机构代码", field: "INS_CD",width:100},
				{title: "机构名称", field: "INS_CN_NM",width:180},
				{title: "机构类别", field: "INSTYPE",width:100},
                {title: "APP名称", field: "APP_NAME_APP",width:100},
				{title: "安卓appid", field: "ANDROID_APPID",width:100},
                {title: "ios appid", field: "IOS_APPID",width:100},
                {title: "安卓最新版本", field: "ANDROID_VERSION",width:80},
                {title: "ios最新版本", field: "IOS_VERSION", width:80},
                {title: "APP广告启动等待时间", field: "ADV_WAIT_TM",width:120},
                {title: "注册时推荐时推荐会员是否必填", field: "SUPER_CUSTOM_ST",width:80},
                {title: "广告批次号", field: "APP_ADV_BATCHNO",width:80},
                {title: "分享标题", field: "SHARE_TITLE",width:180},
                {title: "分享说明", field: "SHARE_DESC",width:180}
			]
		});
  });
  </script>
</head>
<body class="easyui-layout list_body"  >
	<form id="insinfForm" name="insinfForm">
		<div class="list_body_north" data-options="region:'north'"  border="false" >
			<!-- 查询表单 -->
			<div  class="datagrid-toolbar" border="false"  >
				<span>机构代码:</span>
				<input id="ins_cd" type="text" name="ins_cd"  class="easyui-textbox"  >
				<span>机构名称:</span>
				<input id="ins_cn_nm" type="text" name="ins_cn_nm"  class="easyui-textbox"  >
				<a href="#" class="easyui-linkbutton btn" iconCls="icon-search" onclick="doSearch() ">查询</a> 
				<a href="#" class="easyui-linkbutton btn" iconCls="icon-reload" onclick="resetForm() ">重置</a>					
			</div>
			<!-- 自定义标签工具栏 -->
			<jiepos:buttonOperateTag menuCode="${menuCode}"></jiepos:buttonOperateTag>	
		</div>
		<div data-options="region:'center'" border="false"  class="list_body_center">		
			<!-- 表格 -->
			<table id="insInfTableId" fit="true"></table>
		</div>
	</form>
</body>
</html>